<form method="post"
        action="${rc.getContextPath()}/manage/workflowBusiness/saveBusinessType"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageContent">
        <div class="pageFormContent" layouth="56">
            <input type="hidden" name="navTabId" value="">
            <input type="hidden" name="siteCode" value="${siteCode}">
            <fieldset class="dataset">
                <dl style="width:400px;">
                    <dt><@label key="businessType.C,colon">业务类型：</@label></dt>
                    <dd>
                        <input name="businessType" 
                            value="<#if (businessType.businessType)??>${businessType.businessType!''}</#if>"
                            size="32" type="text" maxlength="40" class="alphanumeric toUp"  readonly="true"
                        /> 
                    </dd>
                </dl>
                <dl  style="width:400px;">
                    <dt><@label key="businessTypeText.C,colon">业务类型描述：</@label></dt>
                    <dd>
                        <input name="businessTypeText" 
                            value="<#if (businessType.businessTypeText)??>${businessType.businessTypeText!''}</#if>"
                            size="32" type="text" maxlength="60"    readonly="true"
                        /> 
                    </dd>
                </dl>
                <dl  style="width:400px;">
                    <dt><@label key="dbTable.C,colon">数据库表名：</@label></dt>
                    <dd>
                        <input name="dbTable" 
                            value="<#if (businessType.dbTable)??>${businessType.dbTable!''}</#if>"
                            size="100" type="text" maxlength="30" class="toUp"  readonly="true"
                        /> 
                    </dd>
                </dl>
                <dl  style="width:400px;">
                    <dt></dt>
                    <dd>
                        <input name="tableCreateFlag"  type="checkbox"  disabled="disabled" value="1"  <#if (businessType)?? &&
                            (businessType.tableCreateFlag == 1)> checked="true"</#if>><@label key="tableCreateFlag.C">表结构已生成</@label></input>
                    </dd>
                </dl>
                <dl  style="width:400px;">
                    <dt><@label key="sequenceCode.C,colon">序列编号：</@label></dt>
                    <dd>
                       <input name="sequenceCode" id="sequenceLookup.sequenceCode"
                            value="<#if (businessType.sequenceCode)??>${businessType.sequenceCode!''}</#if>"
                            size="32" type="text" maxlength="30" class="required alphanumeric toUp"   readonly="true"
                        /> 
                        
                    </dd>
                </dl>
                <dl  style="width:400px;">
                    <dt><@label key="numberRuleCode.C,colon">业务编号规则：</@label></dt>
                    <dd>
                        <input name="numberRuleCode" id="numberRuleLookup.ruleCode" 
                            value="<#if (businessType.numberRuleCode)??>${businessType.numberRuleCode!''}</#if>"
                            size="32" type="text" maxlength="30" class="required alphanumeric toUp "   readonly="true"
                        /> 
                        
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dd>
                        <div  class="panel"  style="width: 800px;margin: 0;">
                        <h1><@label key="businessField.C">业务字段</@label></h1>
                        <div>
                        <div id="bar" class="pBar">
                                        <ul class="toolBar">
								            <li>
								                <a class="icon"  rel="businessField"  target="dialog" mask="true" width="700" height="400" href="${rc.getContextPath()}/manage/workflowBusiness/viewBusinessField?navTabId=${navTabId!''}&businessType=${businessType.businessType!''}&businessField={businessField_id}"><span><@label key="view.B">详情</@label></span></a>
								            </li>
                                        </ul>
                                    </div>
                                    <table class="table border"  width="100%" layoutH="310">
								        <thead>
								            <tr>
								                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                                                    <th width="80"><@label key='businessField.C'>业务字段</@label></th>
								                 <th width="80"><@label key='dbField.C'>数据库字段</@label></th>
                                                    <th width="80" ><@label key='fieldLabel.C'>字段标签</@label></th>
                                                    <th width="80" ><@label key='DataType.C'>数据类型</@label></th>
                                                    <th width="80" ><@label key='fieldType.C'>字段类型</@label></th>
                                                    <th width="80" ><@label key='length.C'>长度</@label></th>
								                    <th width="80" ><@label key='scale.C'>小数位数</@label></th>
                                                    <th width="80" ><@label key='requiredFlag.C'>必填</@label></th>
                                                    <th width="80" ><@label key='systemFieldFlag.C'>系统字段</@label></th>
								                    
								            </tr>
								        </thead>
								        <tbody>
								        <#if businessType.businessFieldList??> <#list businessType.businessFieldList as businessField>
								            <tr target="businessField_id" rel="${businessField.businessField!''}">
								                <td>${1 + businessField_index}</td>
								                 <td>${businessField.businessField!}</td>
								                 <td>${businessField.dbField!}</td>
								                 <td>${businessField.fieldLabel!}</td>
								                 <td>${businessField.dataTypeText!}</td>
								                 <td>${businessField.fieldTypeText!}</td>
								                 <td>${businessField.length!}</td>
								                 <td>${businessField.scale!}</td>
								                 <td><#if businessField.requiredFlag==1>是<#else>否</#if></td>
								                 <td><#if businessField.systemFieldFlag==1>是<#else>否</#if></td>
								            </tr>
								        </#list>
								        </#if>
								        </tbody>
								        </table>
                        </div>
                    </dd>
                </dl>
            </fieldset>
        </div>
        
        </div>
        <div class="formBar">
            <ul>
                <li>
                        <div class="buttonActive" style="margin-left: 10px;">
                            <div class="buttonContent">
                                <button  type="button" class="close"><@label key="close.B">关闭</@label></button>
                            </div>
                        </div>
                       </li>
            </ul>
        </div>
    </form>